import Vue from 'vue';
import VueRouter from 'vue-router';
import Login from '@/Photography/login'
import Register from '@/Photography/register'
import Userinfo from '@/Photography/usertinfo'
import Forget from '@/Photography/forget'
import Welcome from '@/Photography/welcome'
import Footer from '@/Photography/index/afooter'
import Cindex from '@/Photography/index/content/appindex/appindex'
import Cfind from '@/Photography/index/content/appfind/appfind'
import Cupload from '@/Photography/index/content/appupload/appupload'
import Cmessage from '@/Photography/index/content/appmessage/appmessage'
import Cuser from '@/Photography/index/content/appuser/appuser'

Vue.use(VueRouter);


const routes = [
  {
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/welcome',
    name: 'welcome',
    component: Welcome
  },
  {
    path: '/register',
    name: 'register',
    component: Register
  },
  {
    path: '/userinfo',
    name: 'userinfo',
    component: Userinfo
  },
  {
    path: '/forget',
    name: 'forget',
    component: Forget
  },
  {
    path: '/afooter',
    name: 'afooter',
    component: Footer,
    children:[
      {
        path: '/index',
        name: 'index',
        component: Cindex
      },
      {
        path: '/find',
        name: 'find',
        component: Cfind
      },
      {
        path: '/upload',
        name: 'upload',
        component: Cupload
      },
      {
        path: '/message',
        name: 'message',
        component: Cmessage,
        meta: {
          keepAlive: true,
        }
      },
      {
        path: '/user',
        name: 'user',
        component: Cuser
      },
    ]
  },
  {
    path: '/uinfo',
    name: 'uinfo',
    component: () => import('@/Photography/index/content/appsetting/userinfochf')
  },
  {
    path: '/ufk',
    name: 'ufk',
    component: () => import('@/Photography/index/content/appsetting/userfk')
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('@/Photography/index/content/contentpage/search')
  },
  {
    path: '/zplist',
    name: 'zplist',
    component: () => import('@/Photography/index/content/appsetting/userzp')
  },
  {
    path: '/yplist',
    name: 'yplist',
    component: () => import('@/Photography/index/content/appsetting/useryp')
  },
  {
    path: '/jclist',
    name: 'jclist',
    component: () => import('@/Photography/index/content/appsetting/userjc')
  },
  {
    path: '/cdlist',
    name: 'cdlist',
    component: () => import('@/Photography/index/content/appsetting/usercd')
  },
  {
    path: '/sclist',
    name: 'sclist',
    component: () => import('@/Photography/index/content/appsetting/usercollcet')
  },
  {
    path: '/userindex',
    name: 'userindex',
    component: () => import('@/Photography/index/content/appuser/userindex')
  },
  {
    path: '/zpisd',
    name: 'zpisd',
    component: () => import('@/Photography/index/content/contentpage/zpinside')
  },
  {
    path: '/ypisd',
    name: 'ypisd',
    component: () => import('@/Photography/index/content/contentpage/ypinside')
  },
  {
    path: '/jcisd',
    name: 'jcisd',
    component: () => import('@/Photography/index/content/contentpage/jcinside')
  },
  {
    path: '/cdisd',
    name: 'cdisd',
    component: () => import('@/Photography/index/content/contentpage/cdinside')
  },
  {
    path: '/follow',
    name: 'follow',
    component: () => import('@/Photography/index/content/appmessage/msgfollow/follow')
  },
  {
    path: '/userim',
    name: 'userim',
    component: () => import('@/Photography/index/content/appmessage/msgfollow/userim')
  },
  {
    path: '/upfb',
    name: 'upfb',
    component: () => import('@/Photography/index/content/appupload/uploadct/uploadfb')
  }
];

const router = new VueRouter({
  routes,
});

export default router;
